#include <iostream>
#include <ctime>
#include <chrono>
#include <ratio>

int main(){
    using namespace std::chrono;

    steady_clock::time_point t1 = steady_clock::now();

    std::cout << "print 1000 stars." << std::endl;
    for(int i = 0; i < 1000; i++){
        std::cout << "*" << std::endl;
    }
    std::cout << std::endl;
    steady_clock::time_point t2 = steady_clock::now();

    duration<double> time_span = duration_cast<duration<double>>(t2 - t1);
    std::cout << "took " << time_span.count() << "seconds." << std::endl;

    return 0;
}